package org.example.forum.utils;

import java.util.UUID;

//生成随机字符串
public class UUIDUtil {
    //提供原始标准36位的UUID
    public static String getUUID_36() {
        return UUID.randomUUID().toString();
    }

    //提供32位的UUID
    public static String getUUID_32() {
        return UUID.randomUUID().toString().replace("-","");
    }

}
